import lombok.Data;
import configClient.Environment;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * spring-cloud 启动时读取 bootstrap.yml
 */

@ConfigurationProperties("tcc.plus")
@Data
public class TccPlusProperties {

    /**
     * tcc配置参数列表
     */
    private List<TccConfig> configs = new ArrayList<>();

    @Data
    public static class TccConfig {
        private String psm;
        private String key;
        private String configSpace = "default";
        // tcc 默认环境
        private Environment env = Environment.DEFAULT;
    }
}
